﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CQRSFramework.Events
{
    public interface IEventBus
    {
        void Publish<T>(T domainEvent) where T : class, IDomainEvent;
        void Publish<T>(IEnumerable<T> domainEvents) where T : class, IDomainEvent;
    }
}
